const exec = require('child_process').exec;
const version = "1.250428.1310";
// const hotUrl = "https://jyxb.ruishangkeji.cn/update/";
const hotUrl = "http://elite.ruishangkeji.cn/res/";
// const hotUrl = "http://192.168.31.40/res/";
const buildDir = "build/jsb-link/";
const genDir = "assets/";

exec(`node version_generator.js -v ${version} -u ${hotUrl} -s ${buildDir} -d ${genDir}`, (error, stdout, stderr) => {
    if (error) {
        console.error(`exec error: ${error}`);
        return;
    }
    if (stdout) {
        console.log(stdout);
    }
    if (stderr) {
        console.error(stderr)
    }
}); 